package model;

public class VecDoBatohu {

	double cenaVeci;
	double vahaVeci;
	double pomerCenaVaha;
	int id;
	
	//konstruktor
	public VecDoBatohu(double cenaVeci, double vahaVeci, double pomerCenaVaha,
			int id) {
	
		this.cenaVeci = cenaVeci;
		this.vahaVeci = vahaVeci;
		this.pomerCenaVaha = pomerCenaVaha;
		this.id = id;
	}
	public VecDoBatohu() {
		
	}
	@Override
	public String toString() {
		return "VecDoBatohu [cenaVeci=" + cenaVeci + ", vahaVeci=" + vahaVeci
				+ ", pomerCenaVaha=" + pomerCenaVaha + ", id=" + id + "]";
	}

	public double getCenaVeci() {
		return cenaVeci;
	}
	public void setCenaVeci(double cenaVeci) {
		this.cenaVeci = cenaVeci;
	}
	public double getVahaVeci() {
		return vahaVeci;
	}
	public void setVahaVeci(double vahaVeci) {
		this.vahaVeci = vahaVeci;
	}
	public double getPomerCenaVaha() {
		return pomerCenaVaha;
	}
	public void setPomerCenaVaha(double pomerCenaVaha) {
		this.pomerCenaVaha = pomerCenaVaha;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
/*	public int compareTo(Object o) {
        VecDoBatohu temp = (VecDoBatohu) o;
        if (temp.getPomerCenaVaha() == this.getPomerCenaVaha())
        {
            return 0;
        }
        if (temp.getPomerCenaVaha() > this.getPomerCenaVaha())
        {
            return 1;
        }
//       if (temp.getPomerCenaVaha() < this.getPomerCenaVaha())
        else {
            return -1;
        }    
    } 
	*/
	
	
	
	
}
